/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.chipchip.database.objects;

import org.springframework.data.mongodb.core.mapping.Document;

/**
 *
 * @author Tri
 */
@Document(collection = "Item")
public class DOItem {
    public static final String KEY_ITEM_ID = "itemID";
    public static final String KEY_NAME = "name";
    public static final String KEY_DES = "des";
    public static final String KEY_COST = "cost";
    public static final String KEY_INGAME_ITEM = "ingameItem";
    public static final String KEY_ITEM_URL = "itemURL";
    
    private String itemID;
    public String name;
    public String desc;
    public int cost;
    private boolean ingameItem;
    public String itemURL;

    public DOItem(String itemID, String name, String desc, int cost, boolean ingameItem, String itemURL) {
        this.itemID = itemID;
        this.name = name;
        this.desc = desc;
        this.cost = cost;
        this.ingameItem = ingameItem;
        this.itemURL = itemURL;
    }
    
    public String getID() {
        return this.itemID;
    }
    
    public boolean isIngameItem() {
        return this.ingameItem;
    }
}
